package top.infopub.mgr.bpa.service;


import com.github.pagehelper.Page;
import top.infopub.dto.bpa.DeviceSuppleDto;
import top.infopub.generic.GenericService;
import top.infopub.mgr.bpa.domain.DeviceSuppleDomain;
import top.infopub.mgr.bpa.vo.DeviceSuppleVo;
import top.infopub.model.bpa.Basic;
import top.infopub.model.bpa.DeviceSupple;
import top.infopub.model.mkt.ProjectAttachment;

import java.text.ParseException;
import java.util.List;
import java.util.Map;


public interface DeviceSuppleService extends GenericService<DeviceSupple, String> {

    /**
     * 根据条件查询分页数据
     * @param page
     * @param deviceSuppleVo
     * @return 
     * @see
     */
    Page<DeviceSuppleDomain> selectPageByDomainWhere(Page<DeviceSuppleDomain> page,
                                                     DeviceSuppleVo deviceSuppleVo) throws ParseException;


    DeviceSuppleDto queryById(String id);

    List<Map<String, String>> projectDropDownBox();

    Basic projectBasic(String proCode);

    int save(DeviceSuppleDto dto, List<ProjectAttachment> attachmentList);

    DeviceSupple findById(String id);
}